package com.tarena.lbs.business.dao.repository.impl;

import com.tarena.lbs.business.dao.mapper.BusinessCategoryMapper;
import com.tarena.lbs.business.dao.repository.BusinessCategoryRepository;
import com.tarena.lbs.business.pojo.po.BusinessCategoryPO;
import com.tarena.lbs.business.pojo.vo.BusinessCategoryVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Slf4j
public class BusinessCategoryRepositoryImpl implements BusinessCategoryRepository {

    @Autowired
    private BusinessCategoryMapper businessCategoryMapper;

    @Override
    public List<BusinessCategoryPO> getAllCategories() {
        return businessCategoryMapper.selectList(null);
    }
}
